<%@ page import="java.util.List" %>
<%@ page import="com.jsp.pojo.Student" %><%--
  Created by IntelliJ IDEA.
  User: wzm
  Date: 2023/5/5
  Time: 16:19
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
	<title>Title</title>
</head>
<body>
<%--展示10个学生--%>

<%--获取10个学生数据--%>
<%--<%=request.getAttribute("stuList")%>--%>
<%
	List<Student> stuList = (List<Student>) request.getAttribute("stuList");
%>

<h1>列表</h1>
<table>
	<tr>
		<td>姓名</td>
		<td>电话</td>
		<td>操作</td>
	</tr>
	<%--遍历输出集合--%>
	<%
	for(Student student:stuList){
	%>
		<tr>
			<td><%=student.getName()%></td>
			<td><%=student.getPhone()%></td>
			<td>
				<a href="#">修改</a>
				<a href="#">删除</a>
			</td>
		</tr>
<%
	}
%>
</table>

</body>
</html>
